# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=py3-isodate
_pyname=isodate
pkgver=0.6.1
pkgrel=4
pkgdesc="An ISO 8601 date/time/duration parser and formatter"
url="https://pypi.org/project/isodate"
arch="noarch"
license="BSD-3-Clause"
depends="py3-six"
makedepends="py3-setuptools"
_pypiprefix="${_pyname%${_pyname#?}}"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
437e420ec7ee68dedded825f30d3289eeb0da526208443e5a8e50fe70f12309515e1285b21132d26e6d4c1683f90dfa1d401582042b5e4381fe7ab0e34af26b6  isodate-0.6.1.tar.gz
"
